package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2018/1/11.
 */

public class Worker implements Parcelable {
    /**
     * id : 06bab3b89b974437af8954af3bf8a6be
     * loginName : 222222
     * personName : 33333
     * phone : 15161885512
     */

    private String id;
    private String loginName;
    private String personName;
    private String phone;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.loginName);
        dest.writeString(this.personName);
        dest.writeString(this.phone);
    }

    public Worker() {
    }

    protected Worker(Parcel in) {
        this.id = in.readString();
        this.loginName = in.readString();
        this.personName = in.readString();
        this.phone = in.readString();
    }

    public static final Parcelable.Creator<Worker> CREATOR = new Parcelable.Creator<Worker>() {
        @Override
        public Worker createFromParcel(Parcel source) {
            return new Worker(source);
        }

        @Override
        public Worker[] newArray(int size) {
            return new Worker[size];
        }
    };
}
